Repeat
Repeat image multiple times linearly, or in grid pattern.
Node Data | |||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Display name | |||||||||||||||||||||||||||||||||||||||
Repeat | |||||||||||||||||||||||||||||||||||||||
Internal name | |||||||||||||||||||||||||||||||||||||||
Node_Repeat | |||||||||||||||||||||||||||||||||||||||
Inheritances | |||||||||||||||||||||||||||||||||||||||
| Node_Processor | |||||||||||||||||||||||||||||||||||||||
| Node_Repeat | |||||||||||||||||||||||||||||||||||||||
Inputs | |||||||||||||||||||||||||||||||||||||||
Surfaces | |||||||||||||||||||||||||||||||||||||||
surface |
Surface In |
||||||||||||||||||||||||||||||||||||||
enum |
Output Dimension Type |
||||||||||||||||||||||||||||||||||||||
vec2 |
Relative Dimension |
||||||||||||||||||||||||||||||||||||||
ipadding |
Padding |
||||||||||||||||||||||||||||||||||||||
vec2 |
Dimension |
||||||||||||||||||||||||||||||||||||||
enum |
Array Select |
||||||||||||||||||||||||||||||||||||||
Pattern | |||||||||||||||||||||||||||||||||||||||
enum |
Pattern |
||||||||||||||||||||||||||||||||||||||
vec2 |
Start Position |
||||||||||||||||||||||||||||||||||||||
rotation |
Start Rotation |
||||||||||||||||||||||||||||||||||||||
Amount | |||||||||||||||||||||||||||||||||||||||
int |
Amount |
||||||||||||||||||||||||||||||||||||||
int |
Column |
||||||||||||||||||||||||||||||||||||||
Pattern | |||||||||||||||||||||||||||||||||||||||
anchor |
Global Anchor |
||||||||||||||||||||||||||||||||||||||
rotation |
Global Rotation |
||||||||||||||||||||||||||||||||||||||
rotRange |
Angle Range |
||||||||||||||||||||||||||||||||||||||
float |
Radius |
||||||||||||||||||||||||||||||||||||||
slider |
Circular Ratio |
||||||||||||||||||||||||||||||||||||||
rotation |
Circular Angle |
||||||||||||||||||||||||||||||||||||||
Path | |||||||||||||||||||||||||||||||||||||||
path |
Path |
||||||||||||||||||||||||||||||||||||||
range |
Path Range |
||||||||||||||||||||||||||||||||||||||
float |
Path Shift |
||||||||||||||||||||||||||||||||||||||
bool |
Rotate Along Path |
||||||||||||||||||||||||||||||||||||||
bool |
Offset Path Position |
||||||||||||||||||||||||||||||||||||||
bool |
Offset Path Rotation |
||||||||||||||||||||||||||||||||||||||
Position | |||||||||||||||||||||||||||||||||||||||
vec2 |
Shift Position |
||||||||||||||||||||||||||||||||||||||
enum |
Stack |
||||||||||||||||||||||||||||||||||||||
vec2 |
Shift Column |
||||||||||||||||||||||||||||||||||||||
anchor |
Anchor |
||||||||||||||||||||||||||||||||||||||
range2 |
Random Position |
||||||||||||||||||||||||||||||||||||||
bool |
Use Shift As Endpoint |
||||||||||||||||||||||||||||||||||||||
Rotation | |||||||||||||||||||||||||||||||||||||||
rotation |
Base Rotation |
||||||||||||||||||||||||||||||||||||||
rotRange |
Repeat Rotation |
||||||||||||||||||||||||||||||||||||||
rotRand |
Random Rotation |
||||||||||||||||||||||||||||||||||||||
Scale | |||||||||||||||||||||||||||||||||||||||
bool |
Uniform Scale |
||||||||||||||||||||||||||||||||||||||
float |
Scale X |
||||||||||||||||||||||||||||||||||||||
float |
Scale Y |
||||||||||||||||||||||||||||||||||||||
range2 |
Random Scale |
||||||||||||||||||||||||||||||||||||||
Rendering | |||||||||||||||||||||||||||||||||||||||
enum |
Blend Mode |
||||||||||||||||||||||||||||||||||||||
bool |
Inverse Draw Order |
||||||||||||||||||||||||||||||||||||||
bool |
Sort Y |
||||||||||||||||||||||||||||||||||||||
Color | |||||||||||||||||||||||||||||||||||||||
palette |
Color Per Index |
||||||||||||||||||||||||||||||||||||||
gradient |
Gradient Over Copy |
||||||||||||||||||||||||||||||||||||||
float |
Gradient Scale |
||||||||||||||||||||||||||||||||||||||
gradient |
Random Color |
||||||||||||||||||||||||||||||||||||||
Deprecated | |||||||||||||||||||||||||||||||||||||||
bool |
Wrap Index |
||||||||||||||||||||||||||||||||||||||
vec2 |
Animator Scale |
||||||||||||||||||||||||||||||||||||||
curve |
Animator Falloff |
||||||||||||||||||||||||||||||||||||||
color |
Animator Blend |
||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||
Outputs | |||||||||||||||||||||||||||||||||||||||
surface |
Surface Out |
||||||||||||||||||||||||||||||||||||||
atlas |
Atlas Data |
||||||||||||||||||||||||||||||||||||||
Attributes | |||||||||||||||||||||||||||||||||||||||
| Color Depth | |||||||||||||||||||||||||||||||||||||||
| Interpolation | |||||||||||||||||||||||||||||||||||||||

Repeat surface over a fix pattern. To scatter surface randomly, use Scatter node.
Properties
| Surfaces | |
| Output Dimension Type | Method for determining output dimension. |
| Array Select | Whether to select image from an array in order, at random, or spread each image to its own output. |
| Pattern | |
| Pattern | Repeation pattern. |
| Global Anchor | Repositon all repeated image After it's repeation. |
| Global Rotation | Rotate all repeated surface around one global anchor. |
| Path | |
| Path | Make repeated surface follows path. Set Shift Position to [0,0] to remove offset. |
| Path Range | Range of the path to distribute. |
| Path Shift | Shift position along path. |
| Rotate Along Path | Whether to rotate object along path normal. |
| Position | |
| Shift Position | Move surface by a fix amount per copies. |
| Stack | Automatically shift the next copy by the width of the current one. Set Shift Position to [0,0] to remove offset. |
| Shift Column | Move surface by a fix amount per row (in grid mode). |
| Anchor | Draw anchor. |
| Random Position | Add random shifting. |
| Use Shift As Endpoint | Instead of shifting each copy by a fix amount. The Shift Position determine where the last copy would be and subdivided other copies in-between. |
| Rotation | |
| Base Rotation | Rotation of the first copy. |
| Repeat Rotation | Adjust rotation of subsequence copy by a fix amount. |
| Random Rotation | Add random rotation to each copy. |
| Scale | |
| Uniform Scale | Force the final scale to have the same X and Y scale factor. |
| Random Scale | Add random scale to each copy. |
| Render | |
| Blend Mode | Drawing blend mode. |
| Sort Y | Sort drawing order by it's Y position to create top-down depth effect. |
Commit History
| 1.10.0 |
|
|---|---|
| 1.21.6.004 |
|
| 1.21.5.002 |
|
| 1.21.2.005 |
|
| 1.21.2.003 |
|
Related Links
- Base Code: /scripts/node_repeat/node_repeat.gml
- Shader [sh_sample]: /shaders/sh_sample/sh_sample.fsh
- Shader [sh_sample_shape]: /shaders/sh_sample_shape/sh_sample_shape.fsh